package com.ning.weixin.utils;

import java.text.DateFormat;
import java.util.Date;

/**
 * 时间格式生成工具
 *
 * @author Cyan
 * @Date:2018/12/10
 */
public class TimeUtil {

    public static String getTime() {
        Date date = new Date();
        DateFormat df = DateFormat.getDateTimeInstance();
        return df.format(date);
    }

    public static void main(String[] args) {
        System.out.println(TimeUtil.getTime());
    }

}
